/*
 * Copyright 2019 the original author or authors.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

const __MALL_SVG_ICONS_NODE__ = "__MALL_SVG_ICONS_NODE__";

const icons: { [key: string]: string } = {
    "menu": '<svg viewBox="0 0 1024 1024"><path d="M904 160H120c-4.4 0-8 3.6-8 8v64c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-64c0-4.4-3.6-8-8-8zM904 784H120c-4.4 0-8 3.6-8 8v64c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-64c0-4.4-3.6-8-8-8zM904 472H120c-4.4 0-8 3.6-8 8v64c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-64c0-4.4-3.6-8-8-8z" p-id="9295"></path></svg>',
    "ellipsis": '<svg viewBox="0 0 1024 1024"><path d="M232 511m-56 0a56 56 0 1 0 112 0 56 56 0 1 0-112 0Z" p-id="9162"></path><path d="M512 511m-56 0a56 56 0 1 0 112 0 56 56 0 1 0-112 0Z" p-id="9163"></path><path d="M792 511m-56 0a56 56 0 1 0 112 0 56 56 0 1 0-112 0Z" p-id="9164"></path></svg>',
    "search": '<svg viewBox="0 0 1024 1024"><path d="M953.504 908.256l-152.608-163.296c61.856-74.496 95.872-167.36 95.872-265.12 0-229.344-186.624-415.968-416.032-415.968-229.344 0-415.968 186.592-415.968 415.968s186.624 415.968 416 415.968c60.096-0.032 118.048-12.576 172.224-37.248 16.096-7.328 23.2-26.304 15.872-42.368-7.328-16.128-26.4-23.264-42.368-15.872-45.856 20.864-94.88 31.456-145.76 31.488-194.08 0-351.968-157.888-351.968-351.968 0-194.048 157.888-351.968 351.968-351.968 194.112 0 352.032 157.888 352.032 351.968 0 91.36-34.848 177.92-98.08 243.744-12.256 12.736-11.84 32.992 0.864 45.248 0.96 0.928 2.208 1.28 3.296 2.08 0.864 1.28 1.312 2.752 2.4 3.904l165.504 177.088c6.272 6.752 14.816 10.144 23.36 10.144 7.84 0 15.68-2.848 21.856-8.64C964.864 941.408 965.568 921.152 953.504 908.256z" p-id="5863"></path></svg>',
    "search_light": '<svg viewBox="0 0 1024 1024"><path d="M955.733333 923.733333l-149.333333-153.6C876.8 693.333333 917.333333 593.066667 917.333333 490.666667c0-224-181.333333-405.333333-405.333333-405.333334S106.666667 266.666667 106.666667 490.666667s181.333333 405.333333 405.333333 405.333333c64 0 125.866667-14.933333 183.466667-42.666667 10.666667-4.266667 14.933333-17.066667 8.533333-27.733333-4.266667-10.666667-19.2-14.933333-27.733333-8.533333-51.2 25.6-106.666667 38.4-164.266667 38.4-200.533333 0-362.666667-162.133333-362.666667-362.666667S311.466667 128 512 128s362.666667 162.133333 362.666667 362.666667c0 100.266667-42.666667 196.266667-115.2 264.533333-8.533333 8.533333-8.533333 21.333333 0 29.866667 2.133333 2.133333 4.266667 4.266667 8.533333 4.266666l157.866667 162.133334c4.266667 4.266667 10.666667 6.4 14.933333 6.4 6.4 0 10.666667-2.133333 14.933333-6.4 6.4-6.4 8.533333-19.2 0-27.733334z" p-id="5730"></path></svg>',
    "qr_code": '<svg viewBox="0 0 1024 1024"><path d="M419.2 160v256h-256V160h256m0-64h-256c-35.2 0-64 28.8-64 64v256c0 35.2 28.8 64 64 64h256c35.2 0 64-28.8 64-64V160c0-35.2-28.8-64-64-64zM899.2 160v256h-256V160h256m0-64h-256c-35.2 0-64 28.8-64 64v256c0 35.2 28.8 64 64 64h256c35.2 0 64-28.8 64-64V160c0-35.2-28.8-64-64-64zM419.2 608v256h-256v-256h256m0-64h-256c-35.2 0-64 28.8-64 64v256c0 35.2 28.8 64 64 64h256c35.2 0 64-28.8 64-64v-256c0-35.2-28.8-64-64-64zM611.2 896c-19.2 0-32-12.8-32-32v-256c0-19.2 12.8-32 32-32s32 12.8 32 32v256c0 16-16 32-32 32zM768 896c-19.2 0-32-12.8-32-32v-256c0-19.2 12.8-32 32-32s32 12.8 32 32v256c0 16-16 32-32 32zM931.2 896c-19.2 0-32-12.8-32-32v-256c0-19.2 12.8-32 32-32s32 12.8 32 32v256c0 16-16 32-32 32z"></path></svg>',
    "home": '<svg viewBox="0 0 1024 1024"><path d="M96 480c-9.6 0-19.2-3.2-25.6-12.8-12.8-12.8-9.6-35.2 3.2-44.8l377.6-310.4c35.2-25.6 86.4-25.6 118.4 0l377.6 307.2c12.8 9.6 16 32 3.2 44.8-12.8 12.8-32 16-44.8 3.2L531.2 166.4c-9.6-6.4-28.8-6.4-38.4 0L115.2 473.6c-6.4 6.4-12.8 6.4-19.2 6.4zM816 928H608c-19.2 0-32-12.8-32-32v-150.4c0-22.4-38.4-44.8-67.2-44.8-28.8 0-64 19.2-64 44.8V896c0 19.2-12.8 32-32 32H211.2C163.2 928 128 892.8 128 848V544c0-19.2 12.8-32 32-32s32 12.8 32 32v304c0 9.6 6.4 16 19.2 16H384v-118.4c0-64 67.2-108.8 128-108.8s131.2 44.8 131.2 108.8V864h176c9.6 0 16 0 16-19.2V544c0-19.2 12.8-32 32-32s32 12.8 32 32v304C896 896 864 928 816 928z" p-id="5801"></path></svg>',
    "home_fill": '<svg viewBox="0 0 1024 1024"><path d="M947.2 422.4L572.8 115.2c-32-25.6-86.4-25.6-118.4 0L76.8 425.6c-12.8 6.4-16 22.4-9.6 35.2 3.2 12.8 16 19.2 28.8 19.2h32v364.8C128 892.8 163.2 928 211.2 928H416c19.2 0 32-12.8 32-32v-147.2c0-22.4 35.2-44.8 64-44.8 28.8 0 67.2 22.4 67.2 44.8V896c0 19.2 12.8 32 32 32h208c48 0 80-32 80-83.2V480h32c12.8 0 25.6-9.6 28.8-22.4 3.2-12.8 0-25.6-12.8-35.2z"></path></svg>',
    "cart_fill": '<svg viewBox="0 0 1024 1024"><path d="M323.2 896m-64 0a64 64 0 1 0 128 0 64 64 0 1 0-128 0Z"></path><path d="M832 896m-64 0a64 64 0 1 0 128 0 64 64 0 1 0-128 0Z"></path><path d="M940.8 284.8c-16-19.2-38.4-28.8-64-28.8H249.6l-22.4-112C220.8 99.2 182.4 64 134.4 64H96c-19.2 0-32 16-32 32s12.8 32 32 32h38.4c12.8 0 25.6 9.6 28.8 25.6L192 310.4l51.2 371.2C249.6 729.6 288 768 332.8 768h486.4c44.8 0 83.2-32 89.6-73.6L960 355.2c3.2-25.6-3.2-51.2-19.2-70.4z"></path></svg>',
    "cart": '<svg viewBox="0 0 1024 1024"><path d="M940.8 284.8c-16-19.2-38.4-28.8-64-28.8H352c-19.2 0-32 12.8-32 32s12.8 32 32 32h524.8c6.4 0 12.8 3.2 16 6.4 3.2 3.2 6.4 9.6 3.2 19.2l-48 336c0 9.6-12.8 19.2-25.6 19.2h-38.4-3.2-444.8c-12.8 0-25.6-16-25.6-28.8L256 300.8l-28.8-156.8C220.8 99.2 182.4 64 134.4 64H96c-19.2 0-32 16-32 32s12.8 32 32 32h38.4c12.8 0 25.6 9.6 28.8 25.6L192 310.4l51.2 371.2C249.6 729.6 288 768 332.8 768h486.4c44.8 0 83.2-32 89.6-73.6L960 355.2c3.2-25.6-3.2-51.2-19.2-70.4z"></path><path d="M323.2 896m-64 0a64 64 0 1 0 128 0 64 64 0 1 0-128 0Z"></path><path d="M832 896m-64 0a64 64 0 1 0 128 0 64 64 0 1 0-128 0Z"></path></svg>',
    "similar": '<svg viewBox="0 0 1024 1024"><path d="M306.784 450.976c-97.056 0-176-78.944-176-176s78.944-176 176-176 176 78.944 176 176S403.84 450.976 306.784 450.976zM306.784 162.976c-61.76 0-112 50.24-112 112s50.24 112 112 112 112-50.24 112-112S368.544 162.976 306.784 162.976z" p-id="6880"></path><path d="M719.296 450.976c-97.024 0-176-78.944-176-176s78.976-176 176-176 176 78.944 176 176S816.32 450.976 719.296 450.976zM719.296 162.976c-61.76 0-112 50.24-112 112s50.24 112 112 112 112-50.24 112-112S781.024 162.976 719.296 162.976z" p-id="6881"></path><path d="M303.584 901.28c-97.056 0-176-78.976-176-176s78.944-176 176-176 176 78.976 176 176S400.64 901.28 303.584 901.28zM303.584 613.28c-61.76 0-112 50.24-112 112s50.24 112 112 112 112-50.24 112-112S365.344 613.28 303.584 613.28z" p-id="6882"></path><path d="M922.944 907.04l-65.856-68.576c26.528-31.36 41.376-71.072 41.376-113.184 0-97.024-78.976-176-176-176s-176 78.976-176 176c0 88.48 67.648 163.52 157.344 174.656 1.344 0.192 2.656 0.256 3.968 0.256 15.936 0 29.728-11.872 31.712-28.064 2.176-17.536-10.272-33.536-27.808-35.68-56.736-7.04-101.216-55.872-101.216-111.168 0-61.76 50.24-112 112-112s112 50.24 112 112c0 34.688-15.648 66.88-42.976 88.256-13.92 10.88-16.384 31.008-5.472 44.896 3.136 4 7.136 6.784 11.392 8.832 0.992 1.44 1.536 3.072 2.784 4.384l76.544 79.68c6.304 6.56 14.688 9.856 23.104 9.856 7.968 0 15.968-2.976 22.144-8.896C934.752 940.032 935.168 919.776 922.944 907.04z" p-id="6883"></path></svg>',
    "my": '<svg viewBox="0 0 1024 1024"><path d="M800 384c0-160-128-288-288-288s-288 128-288 288c0 108.8 57.6 201.6 147.2 249.6-121.6 48-214.4 153.6-240 288-3.2 16 6.4 35.2 25.6 38.4h6.4c16 0 28.8-9.6 32-25.6 28.8-150.4 160-259.2 313.6-262.4h6.4c156.8 0 284.8-128 284.8-288zM288 384c0-124.8 99.2-224 224-224s224 99.2 224 224c0 121.6-99.2 220.8-220.8 224H505.6C384 604.8 288 505.6 288 384zM723.2 675.2c-16-9.6-35.2-6.4-44.8 9.6-9.6 16-6.4 35.2 9.6 44.8 73.6 51.2 124.8 121.6 140.8 204.8 3.2 16 16 25.6 32 25.6h6.4c16-3.2 28.8-19.2 25.6-38.4-19.2-99.2-80-185.6-169.6-246.4z"></path></svg>',
    "my_fill": '<svg viewBox="0 0 1024 1024"><path d="M649.6 633.6c86.4-48 147.2-144 147.2-249.6 0-160-128-288-288-288s-288 128-288 288c0 108.8 57.6 201.6 147.2 249.6-121.6 48-214.4 153.6-240 288-3.2 9.6 0 19.2 6.4 25.6 3.2 9.6 12.8 12.8 22.4 12.8h704c9.6 0 19.2-3.2 25.6-12.8 6.4-6.4 9.6-16 6.4-25.6-25.6-134.4-121.6-240-243.2-288z"></path></svg>',
    "edit": '<svg viewBox="0 0 1024 1024"><path d="M800 960 224 960c-52.928 0-96-43.072-96-96L128 224c0-52.928 43.072-96 96-96l448 0c17.696 0 32 14.336 32 32s-14.304 32-32 32L224 192C206.368 192 192 206.368 192 224l0 640c0 17.664 14.368 32 32 32l576 0c17.664 0 32-14.336 32-32L832 352c0-17.664 14.304-32 32-32s32 14.336 32 32l0 512C896 916.928 852.928 960 800 960z"></path><path d="M612 448c-8.192 0-16.384-3.136-22.624-9.376-12.512-12.512-12.512-32.736 0-45.248l318.016-318.016c12.512-12.512 32.736-12.512 45.248 0s12.512 32.736 0 45.248l-318.016 318.016C628.384 444.896 620.192 448 612 448z" p-id="5710"></path><path d="M480 448 288 448c-17.664 0-32-14.336-32-32s14.336-32 32-32l192 0c17.664 0 32 14.336 32 32S497.664 448 480 448z" p-id="5711"></path><path d="M672 640 288 640c-17.664 0-32-14.304-32-32s14.336-32 32-32l384 0c17.696 0 32 14.304 32 32S689.696 640 672 640z"></path></svg>',
    "left": '<svg viewBox="0 0 1024 1024"><path d="M671.968176 911.99957c-12.287381 0-24.576482-4.67206-33.951566-14.047144L286.048434 545.984249c-18.751888-18.719204-18.751888-49.12028 0-67.872168L638.016611 126.111222c18.751888-18.751888 49.12028-18.751888 67.872168 0 18.751888 18.719204 18.751888 49.12028 0 67.872168l-318.016611 318.047574L705.888778 830.047574c18.751888 18.751888 18.751888 49.12028 0 67.872168C696.544658 907.32751 684.255557 911.99957 671.968176 911.99957z"></path></svg>',
    "right": '<svg viewBox="0 0 1024 1024"><path d="M761.056 532.128c0.512-0.992 1.344-1.824 1.792-2.848 8.8-18.304 5.92-40.704-9.664-55.424L399.936 139.744c-19.264-18.208-49.632-17.344-67.872 1.888-18.208 19.264-17.376 49.632 1.888 67.872l316.96 299.84-315.712 304.288c-19.072 18.4-19.648 48.768-1.248 67.872 9.408 9.792 21.984 14.688 34.56 14.688 12 0 24-4.48 33.312-13.44l350.048-337.376c0.672-0.672 0.928-1.6 1.6-2.304 0.512-0.48 1.056-0.832 1.568-1.344C757.76 538.88 759.2 535.392 761.056 532.128z"></path></svg>',
    "favor": '<svg viewBox="0 0 1024 1024"><path d="M767.104 959.936c-5.344 0-10.688-1.344-15.52-4.032l-241.312-133.856-241.824 133.024c-10.72 5.92-23.904 5.152-33.888-1.92-10.016-7.072-15.104-19.264-13.12-31.328l46.88-284.736-196.448-202.08c-8.256-8.512-11.168-20.928-7.456-32.192 3.68-11.296 13.312-19.616 25.024-21.632l155.072-26.592c17.632-2.944 33.984 8.736 36.96 26.144 2.976 17.408-8.704 33.952-26.144 36.96l-95.168 16.32 165.344 170.08c7.072 7.296 10.272 17.504 8.64 27.488l-38.816 235.68 199.616-109.824c9.632-5.312 21.344-5.312 30.944 0.064l199.168 110.464-38.016-235.776c-1.632-10.016 1.632-20.224 8.704-27.456l164.672-168.256-225.664-34.816c-10.56-1.632-19.584-8.416-24.128-18.08l-99.2-212.384-100.064 211.84c-7.552 16-26.624 22.816-42.624 15.264-15.968-7.552-22.816-26.624-15.264-42.624l129.152-273.44c5.312-11.2 16.576-18.336 28.928-18.336 0 0 0.032 0 0.064 0 12.416 0.032 23.68 7.232 28.928 18.464l120.8 258.624 270.336 41.728c11.872 1.824 21.696 10.144 25.504 21.504 3.776 11.36 0.864 23.936-7.488 32.48l-196.928 201.216 45.92 284.864c1.952 12.096-3.2 24.256-13.216 31.296C780 958.016 773.568 959.936 767.104 959.936z"></path></svg>',
    "favor_fill": '<svg viewBox="0 0 1024 1024"><path d="M957.216 404.32c-3.808-11.36-13.632-19.68-25.504-21.504l-270.336-41.728-120.8-258.624C535.328 71.232 524.032 64.032 511.648 64c0 0-0.032 0-0.064 0-12.384 0-23.648 7.136-28.928 18.336l-121.856 258.016-270.72 40.8c-11.872 1.792-21.728 10.048-25.568 21.408-3.84 11.36-0.992 23.936 7.36 32.512l196.448 202.08L221.44 921.952c-1.984 12.096 3.104 24.256 13.12 31.328 9.984 7.072 23.168 7.808 33.888 1.92l241.824-133.024 241.312 133.856C756.416 958.656 761.76 960 767.104 960c0.256 0 0.48 0 0.64 0 17.696 0 32-14.304 32-32 0-3.968-0.704-7.776-2.016-11.296l-44.896-278.688 196.928-201.248C958.08 428.224 960.992 415.68 957.216 404.32z"></path></svg>',
    "shop": '<svg viewBox="0 0 1024 1024"><path d="M864 617.6c-19.2 0-32 12.8-32 32v195.2c0 9.6-9.6 19.2-19.2 19.2H211.2c-9.6 0-19.2-9.6-19.2-19.2v-195.2c0-19.2-12.8-32-32-32s-32 12.8-32 32v195.2C128 889.6 166.4 928 211.2 928h601.6c44.8 0 83.2-38.4 83.2-83.2v-195.2c0-19.2-12.8-32-32-32zM956.8 316.8l-105.6-204.8c-6.4-9.6-16-16-28.8-16h-640c-12.8 0-25.6 9.6-28.8 22.4l-83.2 208c-6.4 6.4-3.2 22.4-3.2 25.6v80c0 80 67.2 147.2 147.2 147.2H256c48 0 86.4-16 112-44.8 25.6 28.8 70.4 44.8 124.8 44.8h41.6c54.4 0 99.2-16 124.8-44.8 25.6 25.6 64 41.6 112 41.6h41.6c80 0 147.2-67.2 147.2-147.2v-83.2c0-3.2 0-22.4-3.2-28.8zM204.8 160h598.4l67.2 128H150.4l54.4-128z m608 352h-41.6c-19.2 0-83.2-3.2-83.2-64 0-19.2-12.8-32-32-32s-32 12.8-32 32v12.8c0 51.2-76.8 54.4-92.8 54.4h-41.6c-16 0-92.8-3.2-92.8-54.4v-6.4-3.2c0-19.2-12.8-32-32-32s-32 12.8-32 32c0 48-41.6 64-83.2 64H211.2c-44.8 0-83.2-38.4-83.2-83.2V352h768v76.8c0 44.8-35.2 83.2-83.2 83.2z"></path></svg>',
    "shop_fill": '<svg viewBox="0 0 1024 1024"><path d="M952.832 352.768c-0.064-0.48-0.16-0.928-0.256-1.312-0.384-1.856-0.896-3.648-1.632-5.376L875.936 159.36c-12.96-38.592-48.832-62.56-93.952-62.56L255.488 96.8c-44.224 0-78.592 23.52-91.04 60.704l-80.64 190.528c-0.384 1.12-0.8 2.784-1.152 4.48-5.856 17.984-8.8 36.448-8.8 54.976 0.064 65.184 35.84 124.704 93.28 155.264 23.648 12.672 51.52 19.072 82.816 19.072 0.032 0 0.064 0 0.096 0 52.512-0.128 101.152-23.2 134.304-62.688 32.992 39.136 81.248 62.08 133.664 62.4 52-0.384 100.096-23.424 132.96-62.56 33.152 39.488 81.856 62.496 134.624 62.496 31.936-0.192 60.288-6.88 84.16-20 56.576-30.88 91.68-90.176 91.648-154.656C961.44 388.256 958.4 369.696 952.832 352.768zM766.432 383.968 254.4 383.968c-17.664 0-32-14.336-32-32s14.336-32 32-32l512.032 0c17.696 0 32 14.336 32 32S784.128 383.968 766.432 383.968z" p-id="5850"></path><path d="M895.072 640c0-17.696-14.304-32-32-32-3.296 0-6.272 0.928-9.248 1.888l0 0c-23.712 9.376-54.048 14.432-76.928 13.184-50.432-2.688-88.864-12.736-125.888-44.256-36.512 31.136-83.104 48.864-132.704 49.312-50.304-0.32-97.152-12.928-133.856-44.128-36.928 31.488-84.064 46.816-134.272 46.816L249.984 630.816c-30.656 0-47.936-5.824-75.84-16.128-0.768-0.384-1.568-0.576-2.368-0.864-1.344-0.512-2.368-0.864-3.744-1.376 0 0-4.608-0.8-7.136-0.8 0 0-0.032 0-0.064 0-17.664 0-31.968 14.368-31.936 32.064l0.224 171.488c0 45.12 36.768 81.824 81.984 81.824l602.176-0.384c45.152-0.128 81.888-36.928 81.888-82.048L895.072 640z"></path></svg>',
    "service": '<svg viewBox="0 0 1024 1024"><path d="M835.2 588.8c6.4-16 0-35.2-16-41.6-16-6.4-35.2 0-41.6 16-16 28.8-80 44.8-169.6 44.8-19.2 0-32 12.8-32 32s12.8 32 32 32h9.6c83.2 0 185.6-16 217.6-83.2z"></path><path d="M905.6 438.4l-41.6-16c-12.8-182.4-166.4-329.6-352-329.6-188.8 0-342.4 150.4-352 336l-19.2 12.8c-6.4 6.4-12.8 16-12.8 25.6v134.4c0 19.2 12.8 32 32 32s32-12.8 32-32v-115.2l19.2-12.8c6.4-6.4 12.8-16 12.8-28.8 0-160 128-288 288-288s288 128 288 288c0 12.8 9.6 25.6 22.4 28.8l41.6 16v108.8c0 19.2 12.8 32 32 32s32-12.8 32-32v-134.4c0-9.6-9.6-22.4-22.4-25.6z"></path><path d="M512 649.6c-99.2 0-182.4-80-182.4-182.4 0-99.2 80-182.4 182.4-182.4 99.2 0 182.4 80 182.4 182.4 0 12.8 0 25.6-3.2 38.4-3.2 16 6.4 35.2 25.6 38.4 16 3.2 35.2-6.4 38.4-25.6 3.2-16 6.4-35.2 6.4-51.2 0-134.4-108.8-246.4-246.4-246.4s-246.4 108.8-246.4 246.4c0 86.4 44.8 160 112 204.8-112 38.4-195.2 128-217.6 246.4-3.2 16 6.4 35.2 25.6 38.4h6.4c16 0 28.8-9.6 32-25.6 25.6-131.2 140.8-217.6 288-217.6 19.2 0 32-12.8 32-32-3.2-19.2-16-32-35.2-32zM755.2 710.4c-12.8-9.6-35.2-9.6-44.8 6.4-9.6 12.8-9.6 35.2 6.4 44.8 44.8 35.2 99.2 89.6 115.2 172.8 3.2 16 16 25.6 32 25.6h6.4c16-3.2 28.8-19.2 25.6-38.4-19.2-102.4-86.4-169.6-140.8-211.2z"></path></svg>',
    'service_fill': '<svg viewBox="0 0 1024 1024"><path d="M608.864 671.808c-34.304 0-60.896-2.656-68.544-3.488-17.568-1.984-30.208-17.792-28.256-35.328 1.952-17.504 17.504-30.144 35.328-28.288 79.648 8.736 201.696 1.184 223.04-43.2 7.616-15.904 26.688-22.688 42.688-15.008 15.936 7.648 22.656 26.752 15.008 42.688C794.4 659.328 683.36 671.808 608.864 671.808z" p-id="6326"></path><path d="M896 640c-17.696 0-32-14.304-32-32l0-110.272-42.752-15.232C808.512 477.952 800 465.888 800 452.352c0-158.784-129.184-288-288-288-158.784 0-288 129.216-288 288 0 10.336-4.992 20.032-13.408 26.048L192 491.648 192 608c0 17.696-14.336 32-32 32s-32-14.304-32-32l0-132.832c0-10.336 4.992-20.032 13.408-26.048l18.976-13.504C169.184 249.248 323.52 100.352 512 100.352c186.432 0 339.456 145.664 351.296 329.184l43.456 15.488C919.488 449.568 928 461.632 928 475.168L928 608C928 625.696 913.696 640 896 640z" p-id="6327"></path><path d="M640 783.808l0-9.696c28.032-21.888 50.368-42.944 63.68-72.8-29.152 4.608-61.6 2.976-87.712 2.976-32 0-59.328 0.864-75.968-0.992-35.136-3.872-60.448-38.72-56.544-73.856 3.904-35.168 35.84-60.64 70.656-56.544 71.264 7.648 149.792-0.672 181.28-14.016 1.344-29.216 0.96-60.032 0.96-83.456 0-136.928-83.264-218.176-216.736-221.12-0.768-0.064-18.816-0.064-19.52-0.064-133.504 2.752-213.536 84.928-213.536 222.08 0 84.672 1.44 222.816 97.44 297.792l0 9.696c-128 20.032-225.952 72.512-225.952 142.016C158.048 943.488 172.864 960 190.56 960L818.56 960c17.696 0 39.936-16.512 39.936-34.176C858.496 856.32 768 803.84 640 783.808z"></path></svg>',
    "close": '<svg viewBox="0 0 1024 1024"><path d="M557.312 513.248l265.28-263.904c12.544-12.48 12.608-32.704 0.128-45.248-12.512-12.576-32.704-12.608-45.248-0.128l-265.344 263.936-263.04-263.84C236.64 191.584 216.384 191.52 203.84 204 191.328 216.48 191.296 236.736 203.776 249.28l262.976 263.776L201.6 776.8c-12.544 12.48-12.608 32.704-0.128 45.248 6.24 6.272 14.464 9.44 22.688 9.44 8.16 0 16.32-3.104 22.56-9.312l265.216-263.808 265.44 266.24c6.24 6.272 14.432 9.408 22.656 9.408 8.192 0 16.352-3.136 22.592-9.344 12.512-12.48 12.544-32.704 0.064-45.248L557.312 513.248z"></path></svg>',
    "add": '<svg viewBox="0 0 1024 1024"><path d="M863.328 482.56l-317.344-1.12L545.984 162.816c0-17.664-14.336-32-32-32s-32 14.336-32 32l0 318.4L159.616 480.064c-0.032 0-0.064 0-0.096 0-17.632 0-31.936 14.24-32 31.904C127.424 529.632 141.728 544 159.392 544.064l322.592 1.152 0 319.168c0 17.696 14.336 32 32 32s32-14.304 32-32l0-318.944 317.088 1.12c0.064 0 0.096 0 0.128 0 17.632 0 31.936-14.24 32-31.904C895.264 496.992 880.96 482.624 863.328 482.56z"></path></svg>',
    "move": '<svg viewBox="0 0 1024 1024"><path d="M863.744 544 163.424 544c-17.664 0-32-14.336-32-32s14.336-32 32-32l700.32 0c17.696 0 32 14.336 32 32S881.44 544 863.744 544z"></path></svg>',
    "settings": '<svg viewBox="0 0 1024 1024"><path d="M512 608c-52.928 0-96-43.072-96-96s43.072-96 96-96 96 43.072 96 96S564.928 608 512 608zM512 480c-17.632 0-32 14.368-32 32s14.368 32 32 32 32-14.368 32-32S529.632 480 512 480z" p-id="5689"></path><path d="M631.04 960c-10.016 0-19.712-4.736-25.856-13.12l-73.408-100.48c-13.664 0.832-25.92 0.864-39.584 0l-73.376 100.48c-7.904 10.816-21.728 15.616-34.656 11.872-34.592-9.888-67.488-23.456-97.76-40.32-11.712-6.528-18.112-19.648-16.032-32.896l19.2-123.264c-9.824-8.704-19.136-18.016-27.84-27.808l-123.264 19.2c-13.056 1.984-26.336-4.352-32.896-16.064-16.896-30.368-30.464-63.296-40.32-97.824-3.68-12.864 1.056-26.72 11.904-34.624l100.448-73.376C177.152 524.96 176.928 518.4 176.928 512s0.224-12.96 0.672-19.776L77.12 418.816c-10.816-7.936-15.584-21.728-11.904-34.656 9.856-34.496 23.424-67.392 40.32-97.792 6.56-11.712 19.712-18.048 32.896-16.064l123.264 19.2c8.736-9.824 18.016-19.104 27.84-27.84l-19.2-123.264C268.288 125.184 274.72 112.064 286.432 105.536c30.4-16.896 63.296-30.464 97.76-40.32 12.928-3.648 26.72 1.056 34.656 11.904l73.376 100.448c13.568-0.896 25.824-0.896 39.584 0l73.408-100.48c7.904-10.848 21.664-15.52 34.656-11.904 34.464 9.856 67.328 23.424 97.76 40.32 11.712 6.528 18.112 19.648 16.064 32.896L734.432 261.76c9.824 8.736 19.104 18.016 27.808 27.776l123.328-19.2c13.152-2.016 26.336 4.384 32.864 16.032 16.896 30.4 30.496 63.296 40.352 97.824 3.648 12.896-1.088 26.688-11.904 34.624l-100.48 73.408c0.448 6.816 0.672 13.376 0.672 19.776s-0.224 12.96-0.672 19.776l100.48 73.376c10.816 7.904 15.552 21.728 11.904 34.624-9.856 34.496-23.424 67.424-40.352 97.824-6.528 11.712-19.488 18.048-32.896 16.064l-123.296-19.2c-8.672 9.76-17.984 19.072-27.808 27.776l19.232 123.296c2.048 13.248-4.352 26.368-16.064 32.896-30.24 16.832-63.136 30.4-97.76 40.32C636.928 959.584 633.984 960 631.04 960zM337.152 872.672c13.984 6.752 28.544 12.704 43.552 17.92l70.528-96.576c6.784-9.28 17.984-14.272 29.472-12.896 20.576 2.336 42.08 2.336 62.624 0 11.84-1.376 22.72 3.616 29.472 12.896l70.528 96.576c15.04-5.184 29.6-11.168 43.552-17.92l-18.432-118.368c-1.76-11.36 2.72-22.848 11.712-30.016 16.384-12.992 31.264-27.872 44.16-44.128 7.168-8.992 18.4-13.504 30.016-11.744l118.368 18.432c6.752-14.016 12.736-28.576 17.92-43.552l-96.576-70.528c-9.28-6.784-14.208-18.016-12.896-29.472 1.152-10.272 1.952-20.704 1.952-31.296s-0.768-21.024-1.952-31.296c-1.312-11.424 3.616-22.688 12.896-29.472l96.576-70.56c-5.152-15.008-11.168-29.568-17.92-43.552l-118.4 18.432c-11.328 1.696-22.816-2.688-29.984-11.744-12.896-16.256-27.776-31.104-44.16-44.128-8.992-7.168-13.472-18.592-11.712-29.984l18.432-118.4c-14.016-6.752-28.576-12.736-43.52-17.92l-70.56 96.576c-6.784 9.28-17.696 14.368-29.472 12.928-20.544-2.368-42.016-2.4-62.56 0-11.52 1.344-22.752-3.616-29.536-12.896l-70.528-96.576c-14.976 5.152-29.536 11.136-43.552 17.92l18.432 118.368c1.76 11.392-2.72 22.848-11.744 30.016-16.32 12.928-31.2 27.808-44.128 44.128-7.168 9.024-18.56 13.472-30.016 11.744l-118.368-18.432c-6.752 14.016-12.736 28.576-17.92 43.552l96.576 70.56c9.312 6.784 14.24 18.08 12.896 29.536C241.696 491.008 240.928 501.408 240.928 512s0.768 20.992 1.952 31.264c1.344 11.456-3.616 22.688-12.896 29.504l-96.576 70.528c5.184 15.008 11.168 29.568 17.92 43.552l118.368-18.432c11.392-1.76 22.848 2.752 30.016 11.744 12.896 16.32 27.744 31.168 44.128 44.128 9.024 7.168 13.504 18.624 11.744 30.016L337.152 872.672z" p-id="5690"></path></svg>',
    "pay": '<svg viewBox="0 0 1024 1024"><path d="M799.488 900.448 159.936 900.448c-52.928 0-96-43.072-96-96L63.936 225.952c0-52.928 43.072-96 96-96l642.496 0c52.928 0 96 43.072 96 96L898.432 320c0 17.664-14.304 32-32 32s-32-14.336-32-32L834.432 225.952c0-17.632-14.336-32-32-32L159.936 193.952c-17.632 0-32 14.368-32 32l0 578.496c0 17.664 14.368 32 32 32l639.552 0c17.664 0 32-14.336 32-32l0-98.944c0-17.696 14.304-32 32-32s32 14.304 32 32l0 98.944C895.488 857.376 852.448 900.448 799.488 900.448z" p-id="5904"></path><path d="M661.472 514.112m-31.328 0a0.979 0.979 0 1 0 62.656 0 0.979 0.979 0 1 0-62.656 0Z" p-id="5905"></path><path d="M896 640 576 640c-35.296 0-64-28.704-64-64l0-128c0-35.296 28.704-64 64-64l320 0c35.296 0 64 28.704 64 64l0 128C960 611.296 931.296 640 896 640zM576 448l0 128 320.064 0L896 448 576 448z" p-id="5906"></path></svg>',
    "send": '<svg viewBox="0 0 1024 1024"><path d="M287.008 512 224.992 512c-17.664 0-32-14.336-32-32s14.336-32 32-32l62.016 0c17.664 0 32 14.336 32 32S304.672 512 287.008 512z" p-id="6024"></path><path d="M882.624 128 141.44 128C98.72 128 64 162.688 64 205.376l0 154.624 0 8.48 0 458.016c0 38.304 31.936 69.472 71.168 69.472l753.696 0c39.264 0 71.168-31.168 71.168-69.472L960.032 368.48 960.032 205.376C960 162.688 925.28 128 882.624 128zM896 205.376l0 131.104-223.488 0L672.512 192l210.112 0C889.984 192 896 198.016 896 205.376zM446.688 192l161.824 0 0 360.448-70.784-28.224c-7.712-3.104-16.352-3.04-24 0.128l-67.04 27.52L446.688 192zM128 205.376C128 198.016 134.016 192 141.44 192l241.248 0 0 144.48L128 336.48 128 205.376zM888.832 831.968 135.168 831.968C130.944 831.968 128 829.088 128 826.496L128 400.48l254.688 0 0 199.168c0 10.656 5.312 20.64 14.176 26.592 5.344 3.552 11.552 5.408 17.824 5.408 4.096 0 8.256-0.768 12.16-2.4l99.232-40.736 102.592 40.864c9.856 3.968 21.024 2.72 29.824-3.232 8.768-5.984 14.016-15.872 14.016-26.496l0-199.168L896 400.48l0 426.016C896 829.088 893.056 831.968 888.832 831.968z" p-id="6025"></path></svg>',
    "comment_fill": '<svg viewBox="0 0 1024 1024"><path d="M832 128 192 128C139.072 128 96 171.072 96 224l0 512c0 52.928 43.072 96 96 96l210.752 0 86.624 86.624C495.616 924.864 503.808 928 512 928s16.384-3.136 22.624-9.376L621.248 832 832 832c52.928 0 96-43.072 96-96L928 224C928 171.072 884.928 128 832 128zM336 512C309.536 512 288 490.464 288 464S309.536 416 336 416s48 21.536 48 48S362.464 512 336 512zM528 512c-26.464 0-48-21.536-48-48s21.536-48 48-48 48 21.536 48 48S554.464 512 528 512zM720 512c-26.464 0-48-21.536-48-48s21.536-48 48-48 48 21.536 48 48S746.464 512 720 512z" p-id="6269"></path></svg>',
    "comment": '<svg viewBox="0 0 1024 1024"><path d="M512 928c-8.192 0-16.384-3.136-22.624-9.376l-96-96c-12.512-12.512-12.512-32.736 0-45.248s32.736-12.512 45.248 0L512 850.752l73.376-73.376C591.36 771.36 599.488 768 608 768l224 0c17.664 0 32-14.336 32-32L864 224c0-17.632-14.336-32-32-32L192 192C174.368 192 160 206.368 160 224l0 512c0 17.664 14.368 32 32 32l96 0c17.664 0 32 14.304 32 32s-14.336 32-32 32L192 832c-52.928 0-96-43.072-96-96L96 224c0-52.928 43.072-96 96-96l640 0c52.928 0 96 43.072 96 96l0 512c0 52.928-43.072 96-96 96l-210.752 0-86.624 86.624C528.384 924.864 520.192 928 512 928z" p-id="6513"></path><path d="M336 512C309.536 512 288 490.464 288 464S309.536 416 336 416s48 21.536 48 48S362.464 512 336 512z" p-id="6514"></path><path d="M528 512c-26.464 0-48-21.536-48-48s21.536-48 48-48 48 21.536 48 48S554.464 512 528 512z" p-id="6515"></path><path d="M720 512c-26.464 0-48-21.536-48-48s21.536-48 48-48 48 21.536 48 48S746.464 512 720 512z"></path></svg>',
    "deliver": '<svg viewBox="0 0 1024 1024"><path d="M352 576 224 576c-17.664 0-32-14.304-32-32 0-17.664 14.336-32 32-32l96 0 0-96c0-17.664 14.336-32 32-32s32 14.336 32 32l0 128C384 561.696 369.664 576 352 576z" p-id="6754"></path><path d="M702.144 666.88c-61.952 0-113.664 43.296-127.296 101.12l-123.808 0c-13.568-57.888-65.344-101.216-127.328-101.216-72.288 0-131.104 58.784-131.104 131.072 0 72.352 58.816 131.232 131.104 131.232 60.384 0 110.848-41.344 125.984-97.056l126.432 0c15.104 55.712 65.568 96.992 126.016 96.992 72.224 0 131.008-58.784 131.008-131.072S774.368 666.88 702.144 666.88zM323.744 865.056c-36.992 0-67.104-30.144-67.104-67.232 0-36.96 30.08-67.072 67.104-67.072 36.992 0 67.072 30.08 67.072 67.072C390.816 834.912 360.736 865.056 323.744 865.056zM702.144 864.992c-36.96 0-67.072-30.08-67.072-67.072s30.08-67.072 67.072-67.072c36.928 0 67.008 30.08 67.008 67.072S739.104 864.992 702.144 864.992z" p-id="6755"></path><path d="M864.032 96 399.744 96C355.776 96 320 131.776 320 175.744l0 92.512L125.344 366.08c-1.376 0.704-2.72 1.504-4 2.4-36.096 25.376-56 64.96-56 111.52l0 321.984c0 17.696 14.336 32 32 32s32-14.304 32-32L129.344 480c0-25.024 9.088-44.512 27.04-57.888l209.984-105.504c1.44-0.704 2.368-1.984 3.648-2.88 1.888-1.312 3.776-2.496 5.312-4.16 1.408-1.536 2.336-3.328 3.424-5.056 1.088-1.728 2.24-3.328 2.976-5.28 0.8-2.176 1.024-4.416 1.344-6.688C383.328 290.976 384 289.6 384 288L384 175.744C384 167.072 391.072 160 399.744 160l464.288 0C881.664 160 896 174.592 896 192.512L896 800c0 17.696 14.304 32 32 32s32-14.304 32-32L960 192.512C960 139.296 916.928 96 864.032 96z" p-id="6756"></path></svg>',
    "refund": '<svg viewBox="0 0 1024 1024"><path d="M985.984 589.984c-10.304-14.304-30.272-17.568-44.672-7.296l-56.928 40.992c9.856-35.872 15.04-73.024 15.04-110.72 0-229.952-187.104-417.024-417.056-417.024-229.984 0-417.056 187.072-417.056 417.024 0 229.952 187.104 417.024 417.056 417.024 72.736 0 144-19.104 206.688-55.008 3.36-0.672 6.688-1.76 9.824-3.616 17.952-10.688 35.136-22.784 51.168-35.936 13.632-11.264 15.584-31.392 4.384-45.056-11.264-13.632-31.36-15.616-45.056-4.384-12.544 10.304-26.08 19.616-40.064 28.16-2.144 0.704-4.352 1.024-6.368 2.24-54.368 32.448-116.8 49.6-180.544 49.6-194.656 0-353.056-158.368-353.056-353.024S287.68 159.936 482.368 159.936 835.392 318.304 835.392 512.96c0 44.16-8.192 87.552-24 128.192l-45.28-108.704c-6.816-16.352-25.568-23.968-41.856-17.248-16.32 6.784-24.032 25.536-17.216 41.856l72 172.864c0.736 1.824 1.888 3.328 2.944 4.96 0.288 0.448 0.32 0.96 0.64 1.408 0.096 0.16 0.288 0.192 0.384 0.352 2.752 3.648 6.24 6.496 10.208 8.704 0.704 0.384 1.344 0.768 2.08 1.088 3.328 1.536 6.848 2.72 10.624 3.04 0.64 0.064 1.216-0.096 1.856-0.064 0.32 0 0.576 0.192 0.832 0.192 0.672 0 1.312-0.256 1.984-0.32 2.4-0.096 4.736-0.448 7.008-1.056 0.512-0.16 0.96-0.352 1.44-0.512 2.592-0.896 5.024-2.112 7.296-3.648 0.32-0.224 0.672-0.288 0.96-0.512l151.392-108.96C993.024 624.32 996.288 604.32 985.984 589.984z"></path><path d="M606.752 374.496c12.672-12.288 13.024-32.544 0.736-45.248-12.288-12.672-32.512-13.056-45.248-0.736l-79.744 77.12-79.744-77.12c-12.704-12.288-32.992-11.968-45.248 0.736-12.288 12.704-11.968 32.96 0.736 45.248L448 461.28 448 480l-64 0c-17.664 0-32 14.336-32 32s14.336 32 32 32l64 0 0 32-64 0c-17.664 0-32 14.304-32 32s14.336 32 32 32l64 0 0 67.264c0 17.696 14.336 32 32 32s32-14.304 32-32L512 640l64 0c17.696 0 32-14.304 32-32s-14.304-32-32-32l-64 0 0-32 64 0c17.696 0 32-14.336 32-32s-14.304-32-32-32l-64 0 0-13.888L606.752 374.496z"></path></svg>',
    "round": '<svg viewBox="0 0 1024 1024"><path d="M512 960C264.96 960 64 759.04 64 512S264.96 64 512 64s448 200.96 448 448S759.04 960 512 960zM512 128C300.256 128 128 300.256 128 512c0 211.744 172.256 384 384 384 211.744 0 384-172.256 384-384C896 300.256 723.744 128 512 128z"></path></svg>',
    "round_check_fill": '<svg viewBox="0 0 1024 1024"><path d="M512 65.984C266.08 65.984 65.984 266.08 65.984 512c0 245.952 200.064 446.016 446.016 446.016 245.952 0 446.016-200.064 446.016-446.016C958.016 266.08 757.952 65.984 512 65.984zM727.232 438.432l-256.224 259.008c-0.064 0.064-0.192 0.096-0.256 0.192-0.096 0.064-0.096 0.192-0.192 0.256-2.048 1.984-4.576 3.2-6.944 4.544-1.184 0.672-2.144 1.696-3.392 2.176-3.84 1.536-7.904 2.336-11.968 2.336-4.096 0-8.224-0.8-12.096-2.4-1.28-0.544-2.304-1.632-3.52-2.304-2.368-1.344-4.832-2.528-6.88-4.544-0.064-0.064-0.096-0.192-0.16-0.256-0.064-0.096-0.192-0.096-0.256-0.192l-126.016-129.504c-12.32-12.672-12.032-32.928 0.64-45.248 12.672-12.288 32.896-12.064 45.248 0.64l103.264 106.112 233.28-235.84c12.416-12.576 32.704-12.704 45.248-0.256C739.52 405.6 739.648 425.856 727.232 438.432z"></path></svg>',
    "round_check": '<svg viewBox="0 0 1024 1024"><path d="M512 960C264.96 960 64 759.04 64 512S264.96 64 512 64s448 200.96 448 448S759.04 960 512 960zM512 128.288C300.416 128.288 128.288 300.416 128.288 512c0 211.552 172.128 383.712 383.712 383.712 211.552 0 383.712-172.16 383.712-383.712C895.712 300.416 723.552 128.288 512 128.288z" p-id="5889"></path><path d="M726.976 393.184c-12.544-12.448-32.832-12.32-45.248 0.256l-233.28 235.84-103.264-106.112c-12.352-12.704-32.608-12.928-45.248-0.64-12.672 12.32-12.96 32.608-0.64 45.248l126.016 129.504c0.064 0.096 0.192 0.096 0.256 0.192 0.064 0.064 0.096 0.192 0.16 0.256 2.016 1.984 4.512 3.2 6.88 4.544 1.248 0.672 2.24 1.792 3.52 2.304 3.872 1.6 8 2.4 12.096 2.4 4.064 0 8.128-0.8 11.968-2.336 1.248-0.512 2.208-1.536 3.392-2.176 2.4-1.344 4.896-2.528 6.944-4.544 0.064-0.064 0.096-0.192 0.192-0.256 0.064-0.096 0.16-0.128 0.256-0.192l256.224-259.008C739.648 425.856 739.52 405.6 726.976 393.184z"></path></svg>',
    'we': '<svg viewBox="0 0 1024 1024"><path d="M508.8 704c-25.6 0-51.2-12.8-70.4-35.2l-96-118.4c-16-19.2-22.4-44.8-22.4-73.6 3.2-25.6 12.8-51.2 32-67.2s44.8-25.6 70.4-22.4c25.6 3.2 48 16 64 35.2l25.6 32 25.6-32c16-19.2 38.4-32 64-35.2 25.6-3.2 51.2 6.4 70.4 22.4 38.4 35.2 44.8 99.2 12.8 140.8L640 598.4c-9.6 12.8-28.8 16-41.6 3.2-12.8-9.6-12.8-32-3.2-44.8l41.6-51.2c12.8-16 9.6-38.4-3.2-51.2-9.6-3.2-19.2-6.4-25.6-6.4-9.6 0-19.2 6.4-22.4 12.8L512 550.4l-70.4-89.6c-6.4-6.4-16-12.8-25.6-12.8-9.6 0-19.2 3.2-25.6 9.6-6.4 6.4-12.8 16-12.8 25.6 0 9.6 3.2 19.2 9.6 25.6l96 118.4c6.4 9.6 16 12.8 28.8 12.8s22.4-3.2 28.8-12.8c9.6-12.8 28.8-16 41.6-3.2 12.8 9.6 12.8 32 3.2 44.8-19.2 22.4-44.8 35.2-73.6 35.2h-3.2zM768 732.8c-6.4 0-12.8-3.2-19.2-6.4-12.8-9.6-16-32-6.4-44.8 38.4-48 57.6-105.6 57.6-166.4 0-64-25.6-128-70.4-176-12.8-12.8-9.6-32 3.2-44.8 12.8-12.8 32-9.6 44.8 3.2 54.4 60.8 86.4 140.8 86.4 220.8 0 73.6-25.6 147.2-73.6 204.8-3.2 6.4-12.8 9.6-22.4 9.6z m-492.8 0c-9.6 0-16-3.2-22.4-9.6C195.2 665.6 160 588.8 160 508.8S192 352 252.8 294.4c12.8-12.8 32-12.8 44.8 0 12.8 12.8 12.8 32 0 44.8C252.8 387.2 224 448 224 508.8s25.6 121.6 73.6 169.6c12.8 12.8 12.8 32 0 44.8-6.4 6.4-12.8 9.6-22.4 9.6z"></path><path d="M224 896c-6.4 0-16-3.2-22.4-6.4l-48-48C76.8 748.8 32 633.6 32 512c0-121.6 44.8-240 124.8-329.6 16-16 28.8-32 44.8-44.8 16-9.6 35.2-9.6 48 3.2 12.8 12.8 9.6 32-3.2 44.8-16 12.8-28.8 25.6-41.6 41.6C134.4 304 96 406.4 96 512c0 105.6 38.4 204.8 105.6 284.8 12.8 16 25.6 28.8 41.6 41.6 12.8 12.8 16 32 3.2 44.8-3.2 6.4-12.8 12.8-22.4 12.8z m576 0c-9.6 0-16-3.2-22.4-9.6-12.8-12.8-12.8-32 0-44.8 28.8-28.8 54.4-54.4 64-67.2C899.2 697.6 928 608 928 512c0-102.4-35.2-201.6-99.2-278.4-16-19.2-32-35.2-51.2-51.2-12.8-12.8-16-32-3.2-44.8 12.8-12.8 32-16 44.8-3.2 22.4 19.2 41.6 38.4 57.6 57.6 73.6 89.6 115.2 201.6 115.2 320 0 108.8-35.2 211.2-99.2 297.6-16 22.4-51.2 57.6-70.4 76.8-6.4 6.4-12.8 9.6-22.4 9.6z"></path></svg>',
    'goods': '<svg viewBox="0 0 1024 1024"><path d="M934.4 288c0-16-16-28.8-32-28.8h-137.6c-25.6-108.8-124.8-188.8-240-188.8h-19.2c-115.2 0-214.4 80-240 188.8H128C108.8 256 96 268.8 96 288l-28.8 553.6v3.2C73.6 912 128 960 192 960h649.6c64 0 118.4-51.2 121.6-115.2v-3.2L934.4 288z m-96 608H192c-28.8 0-54.4-22.4-57.6-54.4L156.8 320h102.4v134.4c-19.2 9.6-32 32-32 54.4 0 35.2 28.8 64 64 64s64-28.8 64-64c0-22.4-12.8-44.8-32-54.4V313.6c0-102.4 83.2-182.4 182.4-182.4h19.2c102.4 0 182.4 83.2 182.4 182.4v144c-19.2 9.6-32 32-32 54.4 0 35.2 28.8 64 64 64s64-28.8 64-64c0-22.4-12.8-44.8-32-54.4V320h99.2l25.6 521.6c0 32-25.6 54.4-57.6 54.4z"></path><path d="M611.2 256h-192c-19.2 0-32 12.8-32 32s12.8 32 32 32h192c19.2 0 32-12.8 32-32s-12.8-32-32-32z"></path></svg>',
    'goods_fill': '<svg viewBox="0 0 1024 1024"><path d="M898.133333 341.333333c0-10.666667-10.666667-21.333333-21.333333-21.333333h-128v-8.533333C746.666667 185.6 646.4 85.333333 520.533333 85.333333h-17.066666C379.733333 85.333333 277.333333 185.6 277.333333 311.466667v8.533333H149.333333c-10.666667 0-21.333333 8.533333-21.333333 21.333333l-17.066667 518.4v2.133334c4.266667 55.466667 51.2 98.133333 106.666667 98.133333h595.2c55.466667 0 102.4-42.666667 106.666667-98.133333v-2.133334l-21.333334-518.4zM320 311.466667C320 209.066667 403.2 128 503.466667 128h17.066666c100.266667 0 183.466667 83.2 183.466667 183.466667v8.533333H320v-8.533333zM298.666667 554.666667c-23.466667 0-42.666667-19.2-42.666667-42.666667 0-14.933333 8.533333-29.866667 21.333333-36.266667V384c0-12.8 8.533333-21.333333 21.333334-21.333333s21.333333 8.533333 21.333333 21.333333v91.733333c12.8 6.4 21.333333 21.333333 21.333333 36.266667 0 23.466667-19.2 42.666667-42.666666 42.666667z m426.666666 0c-23.466667 0-42.666667-19.2-42.666666-42.666667 0-14.933333 8.533333-29.866667 21.333333-36.266667V384c0-12.8 8.533333-21.333333 21.333333-21.333333s21.333333 8.533333 21.333334 21.333333v91.733333c12.8 6.4 21.333333 21.333333 21.333333 36.266667 0 23.466667-19.2 42.666667-42.666667 42.666667z"></path></svg>',
    'delete': '<svg viewBox="0 0 1024 1024"><path d="M608 768c-17.696 0-32-14.304-32-32L576 384c0-17.696 14.304-32 32-32s32 14.304 32 32l0 352C640 753.696 625.696 768 608 768z" p-id="5716"></path><path d="M416 768c-17.696 0-32-14.304-32-32L384 384c0-17.696 14.304-32 32-32s32 14.304 32 32l0 352C448 753.696 433.696 768 416 768z" p-id="5717"></path><path d="M928 224l-160 0L768 160c0-52.928-42.72-96-95.264-96L352 64C299.072 64 256 107.072 256 160l0 64L96 224C78.304 224 64 238.304 64 256s14.304 32 32 32l832 0c17.696 0 32-14.304 32-32S945.696 224 928 224zM320 160c0-17.632 14.368-32 32-32l320.736 0C690.272 128 704 142.048 704 160l0 64L320 224 320 160z"></path><path d="M736.128 960 288.064 960c-52.928 0-96-43.072-96-96L192.064 383.52c0-17.664 14.336-32 32-32s32 14.336 32 32L256.064 864c0 17.664 14.368 32 32 32l448.064 0c17.664 0 32-14.336 32-32L768.128 384.832c0-17.664 14.304-32 32-32s32 14.336 32 32L832.128 864C832.128 916.928 789.056 960 736.128 960z"></path></svg>',
    'filter': '<svg viewBox="0 0 1024 1024"><path d="M608.256 960c-17.696 0-32-14.304-32-32L576.256 448c0-7.936 2.944-15.584 8.256-21.44l208.8-234.496L230.432 192.064l209.216 234.656c5.216 5.856 8.096 13.44 8.096 21.312l0 288.768 50.848 41.152c13.76 11.136 15.872 31.264 4.736 44.992s-31.264 15.84-44.992 4.736l-62.72-50.752c-7.52-6.048-11.872-15.232-11.872-24.864l0-291.872L135.136 181.344C126.752 171.936 124.672 158.464 129.824 146.944 134.976 135.456 146.432 128.032 159.04 128.032l706.336 0c12.672 0 24.128 7.456 29.248 19.008s2.976 25.056-5.504 34.432l-248.864 278.816L640.256 928C640.256 945.696 625.952 960 608.256 960z"></path></svg>',
    'wxpay': '<svg viewBox="0 0 1024 1024" ><path d="M381.674792 569.074903c-50.102095 28.516474-57.530274-16.006556-57.530274-16.006556l-62.790068-149.585877c-24.159236-71.082942 20.909216-32.050973 20.909216-32.050973s38.670741 29.865191 68.020186 48.068785c29.333072 18.197454 62.770626 5.339612 62.770626 5.339612l410.484955-193.433524c-75.731822-96.207156-200.835098-159.113881-342.470909-159.113881-231.143381 0-418.500513 167.410847-418.500513 373.933481 0 118.792547 62.038962 224.521566 158.673859 293.049313l-17.426905 102.270245c0 0-8.496511 29.861098 20.945031 16.010649 20.063965-9.442046 71.210855-43.277666 101.657284-63.871703 47.865147 17.028838 100.008738 26.484188 154.674779 26.484188 231.123938 0 418.519955-167.410847 418.519955-373.939621 0-59.821457-15.790638-116.315122-43.76169-166.459173C725.068723 360.106568 420.875606 546.802644 381.674792 569.074903L381.674792 569.074903 381.674792 569.074903M381.674792 569.074903"></path></svg>',
    'alipay': '<svg viewBox="0 0 1024 1024"><path d="M578.656 651.648S512 704.96 487.776 718.944a300.512 300.512 0 0 1-59.104 26.08 247.808 247.808 0 0 1-46.88 10.688c-13.408 1.472-24.512 2.4-33.312 2.848a7.232 7.232 0 0 1-3.136 0.64h-10.08a249.92 249.92 0 0 1-65.088-8.224 164.768 164.768 0 0 1-53.12-24.192 117.856 117.856 0 0 1-35.84-40.256c-8.832-16.16-13.216-34.912-13.216-56.288 0.416-18.432 5.44-35.2 15.04-50.304a133.504 133.504 0 0 1 37.44-38.4 177.536 177.536 0 0 1 50.976-23.904 172.384 172.384 0 0 1 56.288-6.88c18.432 0.832 36.256 3.008 53.44 6.56a485.44 485.44 0 0 1 49.376 12.928c15.712 5.024 30.592 10.464 44.64 16.32 14.08 5.92 27.36 11.552 39.936 17.024a615.04 615.04 0 0 0 32.704 12.576c12.16-15.52 22.4-30.72 30.816-45.6a473.504 473.504 0 0 0 33.344-72c2.944-8.384 4.8-14.24 5.664-17.6h-272.96v-30.208H473.6v-69.76H294.368v-30.208h179.264v-56.64c0-3.744 2.08-6.784 6.272-9.088 4.192-2.304 9.024-3.872 14.464-4.736 6.304-1.248 13.44-1.888 21.376-1.888h48.416v72.32h184.288v30.208H564.16v69.792h146.432l0.096-0.64v0.64h-0.096c-2.944 18.688-7.936 38.4-14.976 59.136a455.52 455.52 0 0 1-26.112 61.632 432.96 432.96 0 0 1-45.6 71.04s144.32 69.088 296.704 93.376C945.888 639.84 960 577.536 960 512c0-247.424-200.576-448-448-448S64 264.576 64 512c0 247.392 200.576 448 448 448 153.472 0 288.896-77.184 369.664-194.848-82.048-17.888-169.216-54.08-303.04-113.504zM224 621.12c-1.696 76.704 85.632 82.4 99.104 82.816 44.544 1.344 80.48-15.36 108.48-31.872 27.968-16.512 73.632-59.2 75.36-60.64 1.664-1.472 3.36-3.04 5.024-4.704-12.224-6.72-24.224-12.864-36-18.528-11.776-5.632-71.68-37.6-124.8-43.04C250.496 534.784 224.512 597.824 224 621.12z"></path></svg>',
};


const svgSprite = (contents: string) => `
  <svg
    xmlns="http://www.w3.org/2000/svg"
    id="${__MALL_SVG_ICONS_NODE__}"
    style="display:none;overflow:hidden;width:0;height:0">
   ${contents}
  </svg>
`;

const renderSvgIcons = () => {
    const symbols = Object.keys(icons)
        .map(iconName => {
            const svgContent = icons[iconName].split('svg')[1];
            return `<symbol id="mall-icon-${iconName}"${svgContent}symbol>`;
        }).join('');
    return svgSprite(symbols);
};

export function getIcon(name: string) {
    return `mall-icon-${name}`;
}

export function loadIcons() {
    if (!document) {
        return;
    }
    const existing = document.getElementById(__MALL_SVG_ICONS_NODE__);
    const mountNode = document.body;

    if (!existing) {
        mountNode.insertAdjacentHTML('afterbegin', renderSvgIcons());
    }
}
